/**
 *@Description
 *@Author cheerqjy
 *@Date 2023-05-29 10:31:38
 *@LastEditTime 2023-05-29 17:32:21
 *@LastEditors cheerqjy
 **/
import http from '@/service/index'

// 获取电缆计划2
export const getPlan2Api = async (params?: any) => {
  return await http.request({
    url: '/cable/plan4/list',
    params
  })
}

// 上传电缆计划2
export const uploadPlan2Api = async (data: { file: any }) => {
  return await http.request({
    url: '/cable/plan4/importExcel',
    method: 'post',
    data
  })
}

// 删除
export const deletePlan2Api = async (params: any) => {
  return await http.request({
    url: '/cable/plan4/delete',
    method: 'delete',
    params
  })
}

// 导出
export async function exportPlay3Api (params: any): Promise<any> {
  return await http.request({
    url: 'cable/plan3/exportXls',
    method: 'get',
    responseType: 'blob', // 添加 blob 解决乱码问题，或者 arraybuffer
    params
  })
}
